import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

import index from './modules/Index'

const opts = {
  modules: { index },
  getters: {
    sideBarState: s => s.index.sideBarState
  }
}

const store = new Vuex.Store(opts)

export default store
